package appcoing

import (
	"fmt"
	"github.com/spf13/viper"
)

type Appcoing struct {
	Mysql struct {
		User     string
		Password string
		Host     string
		Port     int
		Database string
	}

	Redis struct {
		Host     string
		Port     int
		Password string
	}
}

var Appdata Appcoing

func Init() {
	viper.SetConfigFile("appcoing/appcoing.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&Appdata)
	fmt.Println(Appdata)

}
